import type { RouteRecordRaw } from 'vue-router';
import type { categoryObj } from '@/api/product/attr/type';

// user这个store的数据类型
export interface UserState {
  token: string | null;
  menuRoutes: RouteRecordRaw[];
  username: string;
  avatar: string;
  buttons: string[];
}

// setting这个store的数据类型
export interface SettingState {
  fold: boolean;
  refresh: boolean;
}

export interface CategoryState {
  c1Arr: categoryObj[];
  c1Id: number | string;
  c2Arr: categoryObj[];
  c2Id: number | string;
  c3Arr: categoryObj[];
  c3Id: number | string;
}
